import pytest
import pytestreport
import pytest_html_reporter

def test_user():
    print("test_user")

    assert 1==2


if __name__ == '__main__':
    # pytest.main(["--pytest_report","new_report.html",__file__])
    # pytest.main(["--pytest_report", "new_report.html", __file__,"--pytest_title", "这是测试报告的标题", "--pytest_desc", "测试报告描述"])
    # pytest.main(["--html-report=new_report2.html", __file__])
    pytest.main([__file__, '--html=pytest.html','--self-contained-html'])#乱码，路径写英文